package com.xiaojiu.nohttp;

import com.xiaojiu.util.ILogger;
import com.xiaojiu.util.JsonUtils;

import java.util.Map;

import rx.Observable;

/**
 * Created by Jacky on 2017/2/4.
 */

public class UploadRequestRx extends BaseRequest<UploadRequestRx> {
    public <T> UploadRequestRx(String url, T params) {
        this.url = url;
        this.mapParams = (Map<String, String>) params;
        ILogger.i("----params" + JsonUtils.string(this.mapParams) + "----------" + mapParams.size());
    }
    public <T> Observable<T> execute(Class<T> classOfT) {
        return RequestManager.createUploadArray(this, classOfT);
    }

}
